import { Module } from '@nestjs/common';
import { TagsService } from './tags.service';
import { TagsController } from './tags.controller';
import { ClientsModule, Transport } from '@nestjs/microservices';

@Module({
    imports:[
        ClientsModule.registerAsync([{
            name: 'STORE_SERVICE',
            useFactory: () => ({
                transport: Transport.TCP,
                options: {
                    port: 9091,
                    retryAttempts: 5,
                    retryDelay: 3000
                }
            })
        }])
    ],
  controllers: [TagsController],
  providers: [TagsService],
})
export class TagsModule {}
